import { userRequest } from './request'
// 请求注册
export function register (username, password) {
  return userRequest({
    url: '/reg',
    method: 'post',
    data: {
      userName: username,
      password,
      nickName: '',
      avatar: ''
    }
  })
}
//请求登录
export function login (username, password) {
  return userRequest({
    url: '/login',
    method: 'post',
    data: {
      userName: username,
      password
    }
  })
}
